//
//  DHHomeViewModel.h
//  精品酒店
//
//  Created by DIANGHONG on 2018/5/7.
//  Copyright © 2018年 DIANGHONG. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DHOrderListModel.h"
@class DHHomeDataModel;
@interface DHHomeViewModel : NSObject
@property(nonatomic ,strong)DHOrderListModel *listModel;
@property(nonatomic ,strong)NSArray<DHOrderModel *> *taskList;
@property(nonatomic ,assign)int page;

- (void)loadHomeStatusListWithWithPullUP:(BOOL)pullup page:(int)page
                                     lng:(NSString *)lng
                                     lat:(NSString *)lat
                               area_name:(NSString *)area_name
                             FiniedBlock:(void(^)(BOOL hasMore, BOOL isSuccess))finiedBlock;
/**
 首页数据模型
 */
@property(nonatomic ,strong)DHHomeDataModel *homeDatas;

/**
 加载首页数据

 @param finiedBlock 完成回调
 */
- (void)loadHomeDataWithFiniedBlock:(void(^)(BOOL isSuccess))finiedBlock;

- (NSInteger)calcRowHeightWithSection:(NSInteger)section;
@end
